package com.ch2;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.circuitbreaker.EnableCircuitBreaker;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;

@SpringBootApplication
@EnableDiscoveryClient
@EnableCircuitBreaker
public class Ch2Application {

	/**
	 * 抽样收集，百分百
	 * @return
	 */
//	@Bean
//	public AlwaysSampler defaultSampler(){
//		return new AlwaysSampler();
//	}

	public static void main(String[] args) {
		SpringApplication.run(Ch2Application.class, args);
	}
}
